package cn.kgc.waimai.pojo;

import java.util.ArrayList;
import java.util.List;

public class ShjiaExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShjiaExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andShjnameIsNull() {
            addCriterion("shjName is null");
            return (Criteria) this;
        }

        public Criteria andShjnameIsNotNull() {
            addCriterion("shjName is not null");
            return (Criteria) this;
        }

        public Criteria andShjnameEqualTo(String value) {
            addCriterion("shjName =", value, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameNotEqualTo(String value) {
            addCriterion("shjName <>", value, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameGreaterThan(String value) {
            addCriterion("shjName >", value, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameGreaterThanOrEqualTo(String value) {
            addCriterion("shjName >=", value, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameLessThan(String value) {
            addCriterion("shjName <", value, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameLessThanOrEqualTo(String value) {
            addCriterion("shjName <=", value, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameLike(String value) {
            addCriterion("shjName like", value, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameNotLike(String value) {
            addCriterion("shjName not like", value, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameIn(List<String> values) {
            addCriterion("shjName in", values, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameNotIn(List<String> values) {
            addCriterion("shjName not in", values, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameBetween(String value1, String value2) {
            addCriterion("shjName between", value1, value2, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjnameNotBetween(String value1, String value2) {
            addCriterion("shjName not between", value1, value2, "shjname");
            return (Criteria) this;
        }

        public Criteria andShjaddressIsNull() {
            addCriterion("shjAddress is null");
            return (Criteria) this;
        }

        public Criteria andShjaddressIsNotNull() {
            addCriterion("shjAddress is not null");
            return (Criteria) this;
        }

        public Criteria andShjaddressEqualTo(String value) {
            addCriterion("shjAddress =", value, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressNotEqualTo(String value) {
            addCriterion("shjAddress <>", value, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressGreaterThan(String value) {
            addCriterion("shjAddress >", value, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressGreaterThanOrEqualTo(String value) {
            addCriterion("shjAddress >=", value, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressLessThan(String value) {
            addCriterion("shjAddress <", value, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressLessThanOrEqualTo(String value) {
            addCriterion("shjAddress <=", value, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressLike(String value) {
            addCriterion("shjAddress like", value, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressNotLike(String value) {
            addCriterion("shjAddress not like", value, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressIn(List<String> values) {
            addCriterion("shjAddress in", values, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressNotIn(List<String> values) {
            addCriterion("shjAddress not in", values, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressBetween(String value1, String value2) {
            addCriterion("shjAddress between", value1, value2, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andShjaddressNotBetween(String value1, String value2) {
            addCriterion("shjAddress not between", value1, value2, "shjaddress");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceIsNull() {
            addCriterion("peisongPrice is null");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceIsNotNull() {
            addCriterion("peisongPrice is not null");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceEqualTo(Integer value) {
            addCriterion("peisongPrice =", value, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceNotEqualTo(Integer value) {
            addCriterion("peisongPrice <>", value, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceGreaterThan(Integer value) {
            addCriterion("peisongPrice >", value, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("peisongPrice >=", value, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceLessThan(Integer value) {
            addCriterion("peisongPrice <", value, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceLessThanOrEqualTo(Integer value) {
            addCriterion("peisongPrice <=", value, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceIn(List<Integer> values) {
            addCriterion("peisongPrice in", values, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceNotIn(List<Integer> values) {
            addCriterion("peisongPrice not in", values, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceBetween(Integer value1, Integer value2) {
            addCriterion("peisongPrice between", value1, value2, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andPeisongpriceNotBetween(Integer value1, Integer value2) {
            addCriterion("peisongPrice not between", value1, value2, "peisongprice");
            return (Criteria) this;
        }

        public Criteria andShjphoneIsNull() {
            addCriterion("shjPhone is null");
            return (Criteria) this;
        }

        public Criteria andShjphoneIsNotNull() {
            addCriterion("shjPhone is not null");
            return (Criteria) this;
        }

        public Criteria andShjphoneEqualTo(String value) {
            addCriterion("shjPhone =", value, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneNotEqualTo(String value) {
            addCriterion("shjPhone <>", value, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneGreaterThan(String value) {
            addCriterion("shjPhone >", value, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneGreaterThanOrEqualTo(String value) {
            addCriterion("shjPhone >=", value, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneLessThan(String value) {
            addCriterion("shjPhone <", value, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneLessThanOrEqualTo(String value) {
            addCriterion("shjPhone <=", value, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneLike(String value) {
            addCriterion("shjPhone like", value, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneNotLike(String value) {
            addCriterion("shjPhone not like", value, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneIn(List<String> values) {
            addCriterion("shjPhone in", values, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneNotIn(List<String> values) {
            addCriterion("shjPhone not in", values, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneBetween(String value1, String value2) {
            addCriterion("shjPhone between", value1, value2, "shjphone");
            return (Criteria) this;
        }

        public Criteria andShjphoneNotBetween(String value1, String value2) {
            addCriterion("shjPhone not between", value1, value2, "shjphone");
            return (Criteria) this;
        }

        public Criteria andCuisineidIsNull() {
            addCriterion("cuisineId is null");
            return (Criteria) this;
        }

        public Criteria andCuisineidIsNotNull() {
            addCriterion("cuisineId is not null");
            return (Criteria) this;
        }

        public Criteria andCuisineidEqualTo(Integer value) {
            addCriterion("cuisineId =", value, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidNotEqualTo(Integer value) {
            addCriterion("cuisineId <>", value, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidGreaterThan(Integer value) {
            addCriterion("cuisineId >", value, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cuisineId >=", value, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidLessThan(Integer value) {
            addCriterion("cuisineId <", value, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidLessThanOrEqualTo(Integer value) {
            addCriterion("cuisineId <=", value, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidIn(List<Integer> values) {
            addCriterion("cuisineId in", values, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidNotIn(List<Integer> values) {
            addCriterion("cuisineId not in", values, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidBetween(Integer value1, Integer value2) {
            addCriterion("cuisineId between", value1, value2, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andCuisineidNotBetween(Integer value1, Integer value2) {
            addCriterion("cuisineId not between", value1, value2, "cuisineid");
            return (Criteria) this;
        }

        public Criteria andPingfenIsNull() {
            addCriterion("pingfen is null");
            return (Criteria) this;
        }

        public Criteria andPingfenIsNotNull() {
            addCriterion("pingfen is not null");
            return (Criteria) this;
        }

        public Criteria andPingfenEqualTo(Integer value) {
            addCriterion("pingfen =", value, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenNotEqualTo(Integer value) {
            addCriterion("pingfen <>", value, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenGreaterThan(Integer value) {
            addCriterion("pingfen >", value, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenGreaterThanOrEqualTo(Integer value) {
            addCriterion("pingfen >=", value, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenLessThan(Integer value) {
            addCriterion("pingfen <", value, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenLessThanOrEqualTo(Integer value) {
            addCriterion("pingfen <=", value, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenIn(List<Integer> values) {
            addCriterion("pingfen in", values, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenNotIn(List<Integer> values) {
            addCriterion("pingfen not in", values, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenBetween(Integer value1, Integer value2) {
            addCriterion("pingfen between", value1, value2, "pingfen");
            return (Criteria) this;
        }

        public Criteria andPingfenNotBetween(Integer value1, Integer value2) {
            addCriterion("pingfen not between", value1, value2, "pingfen");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}